package books.ThinkingInJava.src.Chapter12;

import java.io.PrintWriter;
import java.io.StringWriter;
import java.util.logging.Logger;

public class LoggingException extends Exception {
    private static Logger log = Logger.getLogger("LoggingException");

    public LoggingException() {
        StringWriter stw = new StringWriter();
        printStackTrace(new PrintWriter(stw));
        log.finest("finest");
    }
}
